<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>企业日常事务管理系统-发布新消息</title>
<link href="css.css" type="text/css" rel="stylesheet" media="all" />
<link href="css/channel.css" type="text/css" rel="stylesheet"
	media="all" />
<!-- <script src="menu.js" type="text/javascript"></script> -->
</head>

<body>
	<div id="topexplain">企业日常事务管理系统，为企业内部通信提供最简便的服务！</div>
	<div id="topmenu">
		<img src="images/banner.jpg" width="970" height="147" />
	</div>
	<div id="bookmunu">
		<div class="jsmenu" id="jsmenu">
			<ul>
				<li class="normal"><a href="index.jsp" urn="jsmenu1"
					rel="conmenu">首页</a></li>
				<li class="normal"><a urn="jsmenu2" rel="conmenu"
					href="GetMessageList">消息列表</a></li>
				<li class="active"><a urn="#default_Info" rel="conmenu"
					href="publishNewMsg.jsp">发布新消息</a></li>
				<li class="normal"><a urn="jsmenu3" rel="conmenu"
					href="statusRecognise.jsp">身份识别</a></li>
			</ul>
		</div>
		<div id="conmenu"></div>
		<div id="place">
			当前位置：[<a href="index.jsp">首页</a>] - [发布新消息]
		</div>
		<div id="channelcont">
			<div id="channelleft">
				<div class="channelinleft">
					<div id="messageBox">
						<p>
							<font color="red">${requestScope.error}</font>
						</p>
						<form action="MsgPublish" method="post" name="MsgPublish">
							<p>
								消息标题： <input type="text" name="title" size="50" />
							</p>
							<p>消息内容：</p>
							<div id="editor" height="400" width="750" >
								
							</div>
							<p align="center">
							<input type="hidden" name="content"> 
								<input type="submit" value="提交" onclick="getContent()" /> <input type="reset"
									value="重置" />
							</p>
						</form>
					</div>
				</div>
			</div>
		</div>
		<div class="copyright">
			<ul>
				<li></li>
				<li>企业日常事务管理系统 &nbsp;&copy;2009-2010</li>
			</ul>
		</div>
		<div class="end"></div>
		<!-- <script type=text/javascript>
startajaxtabs("jsmenu");

var iTab=GetCookie("nets_jsmenu");
	iTab = iTab ? parseInt(iTab):parseInt(Math.random()*5);
	if(iTab!=0) getElement("jsmenu").getElementsByTagName("h1")[iTab].LoadTab();
	iTab++;
	if(iTab>4) iTab=0;
	SetCookie("nets_jsmenu",iTab,365);
function getElement(aID)
{
  return (document.getElementById) ? document.getElementById(aID)
                                   : document.all[aID];
} 
</script>-->

		<script type="text/javascript" src="wangEditor.min.js"></script>
		<script type="text/javascript">
		var E = window.wangEditor
		var editor = new E('#editor')
		// 或者 var editor = new E( document.getElementById('editor') )
		editor.create();
		function getContent(){
			//editor.txt.html()
			//editor.txt.text()
			var contentStr=editor.txt.html();
			document.all.content.value=contentStr;
			document.MsgPublish.submit();  
			return contentStr;
		}
			
		</script>
</body>
</html>



